// Auth types
export interface User {
  is_deleted: boolean;
  birthDay: any;
  mobile: string;
  gender: "male" | "female";
  id: number;
  nick_name: string;
  role: number;
  expired_at: number;
}
export interface UserListResponse {
  code: number;
  data: UserListInfo[];
  total: number;
}

export  interface UserListInfo {
  id: number;
  nickName: string;
  mobile: string;
  gender: 'male' | 'female';
  birthDay: number; // 修改为 number 类型
  role: 1 | 2;
  is_deleted: boolean;
}



export interface AuthState {
  user: User | null;
  token: string | null;
  loading: boolean;
  error: string | null;
}

//EnableList types

export interface EnableList{
  id: string;
  name: string;
}
// Language types
export interface Language {
  id: string;
  name: string;
  description: string;
  enable: boolean;
}

// Component types
export interface TranslationComponent {
  id: string;
  name: string;
  type: 'text' | 'image' | 'button' | 'input';
  description: string;
  translations: {
    [key: string]: string;
  };
}

export interface TranslationComponentV1 {
  id: string|null;
  name: string;
  type: 'text' | 'image' | 'button' | 'input';
  description: string;
  translations: {
    [key: string]: string;
  };
}
// Log types
export interface Log {
  id: string;
  user: string;
  action: string;
  type: 'create' | 'update' | 'delete' | 'login';
  timestamp: string;
  details: string;
}